
// login
const authApi = {
  getLogin: "/const/us/login"
}
// 用户接口
const userApi = {
  getUserList: "/const/us/user/pageList",
  addUser: "/const/us/user/add",
  updateUser: "/const/us/user/update",
  deleteUser: "/const/us/user/delete",
  getUserDetail: "/const/us/user/detail",
  getPermission: "/const/us/user/permission",
};
// 角色接口
const roleApi = {
  // 获取全部角色接口
  getAllMenu: "/const/us/role/menuList",
  getRoleList: "/const/us/role/pageList",
  addRole: "/const/us/role/create",
  updateRole: "/const/us/role/update",
  deleteRole: "/const/us/role/delete",
  getRoleDetail: "/const/us/role/detail",
  getMenuDetail: "/const/us/role/getMenuByRoleId",
  updateMenu: "/const/us/role/updatePermission",
};
// 日志
const logApi = {
  getLogList: "/const/us/system/log/pageList",
}
// 菜单
const menuApi = {
  saveOrUpdate: "/const/us/menu/save",
  getAllMenu: "/const/us/menu/list",
  deleteFun: "/const/us/menu/delete",
}
// 备份恢复
const backupApi = {
  getBackList: "/const/backup/list",
  getManual: "/const/backup/manual",// 手动
  getAuto: "/const/backup/auto", // 自动
  getrecovery: "/const/backup/dataSingleRestore",//单条数据恢复
}
// 显示设置
const showConfigApi = {
  saveConfig: "/const/system/nodeConfig/edit",
  getConfigDetail: "/const/system/nodeConfig/detail",
}
export default {
  authApi,
  userApi,
  roleApi,
  logApi,
  menuApi,
  backupApi,
  showConfigApi
};
